Optimal. Leaf size=167 \[ \frac{12 \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b^3 d^2}-\frac{6 (c+d x) \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}+\frac{2 c \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}-\frac{12 \cosh \left (a+b \sqrt{c+d x}\right )}{b^4 d^2}+\frac{2 (c+d x)^{3/2} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}-\frac{2 c \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.188235, antiderivative size = 167, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {5365, 5287, 3296, 2638} \[ \frac{12 \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b^3 d^2}-\frac{6 (c+d x) \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}+\frac{2 c \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}-\frac{12 \cosh \left (a+b \sqrt{c+d x}\right )}{b^4 d^2}+\frac{2 (c+d x)^{3/2} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}-\frac{2 c \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5365
Rule 5287
Rule 3296
Rule 2638
Rubi steps
\begin{align*} \int x \cosh \left (a+b \sqrt{c+d x}\right ) \, dx &=\frac{\operatorname{Subst}\left (\int (-c+x) \cosh \left (a+b \sqrt{x}\right ) \, dx,x,c+d x\right )}{d^2}\\ &=\frac{2 \operatorname{Subst}\left (\int x \left (-c+x^2\right ) \cosh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{d^2}\\ &=\frac{2 \operatorname{Subst}\left (\int \left (-c x \cosh (a+b x)+x^3 \cosh (a+b x)\right ) \, dx,x,\sqrt{c+d x}\right )}{d^2}\\ &=\frac{2 \operatorname{Subst}\left (\int x^3 \cosh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{d^2}-\frac{(2 c) \operatorname{Subst}\left (\int x \cosh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{d^2}\\ &=-\frac{2 c \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}+\frac{2 (c+d x)^{3/2} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}-\frac{6 \operatorname{Subst}\left (\int x^2 \sinh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{b d^2}+\frac{(2 c) \operatorname{Subst}\left (\int \sinh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{b d^2}\\ &=\frac{2 c \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}-\frac{6 (c+d x) \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}-\frac{2 c \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}+\frac{2 (c+d x)^{3/2} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}+\frac{12 \operatorname{Subst}\left (\int x \cosh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{b^2 d^2}\\ &=\frac{2 c \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}-\frac{6 (c+d x) \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}+\frac{12 \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b^3 d^2}-\frac{2 c \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}+\frac{2 (c+d x)^{3/2} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}-\frac{12 \operatorname{Subst}\left (\int \sinh (a+b x) \, dx,x,\sqrt{c+d x}\right )}{b^3 d^2}\\ &=-\frac{12 \cosh \left (a+b \sqrt{c+d x}\right )}{b^4 d^2}+\frac{2 c \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}-\frac{6 (c+d x) \cosh \left (a+b \sqrt{c+d x}\right )}{b^2 d^2}+\frac{12 \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b^3 d^2}-\frac{2 c \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}+\frac{2 (c+d x)^{3/2} \sinh \left (a+b \sqrt{c+d x}\right )}{b d^2}\\ \end{align*}
Mathematica [A] time = 0.189866, size = 72, normalized size = 0.43 \[ \frac{2 b \left (b^2 d x+6\right ) \sqrt{c+d x} \sinh \left (a+b \sqrt{c+d x}\right )-2 \left (b^2 (2 c+3 d x)+6\right ) \cosh \left (a+b \sqrt{c+d x}\right )}{b^4 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.013, size = 303, normalized size = 1.8 \begin{align*} 2\,{\frac{1}{{d}^{2}{b}^{2}} \left ({\frac{ \left ( a+b\sqrt{dx+c} \right ) ^{3}\sinh \left ( a+b\sqrt{dx+c} \right ) -3\, \left ( a+b\sqrt{dx+c} \right ) ^{2}\cosh \left ( a+b\sqrt{dx+c} \right ) +6\, \left ( a+b\sqrt{dx+c} \right ) \sinh \left ( a+b\sqrt{dx+c} \right ) -6\,\cosh \left ( a+b\sqrt{dx+c} \right ) }{{b}^{2}}}-3\,{\frac{a \left ( \left ( a+b\sqrt{dx+c} \right ) ^{2}\sinh \left ( a+b\sqrt{dx+c} \right ) -2\, \left ( a+b\sqrt{dx+c} \right ) \cosh \left ( a+b\sqrt{dx+c} \right ) +2\,\sinh \left ( a+b\sqrt{dx+c} \right ) \right ) }{{b}^{2}}}+3\,{\frac{{a}^{2} \left ( \left ( a+b\sqrt{dx+c} \right ) \sinh \left ( a+b\sqrt{dx+c} \right ) -\cosh \left ( a+b\sqrt{dx+c} \right ) \right ) }{{b}^{2}}}-{\frac{{a}^{3}\sinh \left ( a+b\sqrt{dx+c} \right ) }{{b}^{2}}}-c \left ( \left ( a+b\sqrt{dx+c} \right ) \sinh \left ( a+b\sqrt{dx+c} \right ) -\cosh \left ( a+b\sqrt{dx+c} \right ) \right ) +ac\sinh \left ( a+b\sqrt{dx+c} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15458, size = 393, normalized size = 2.35 \begin{align*} \frac{2 \, d^{2} x^{2} \cosh \left (\sqrt{d x + c} b + a\right ) -{\left (\frac{c^{2} e^{\left (\sqrt{d x + c} b + a\right )}}{b} + \frac{c^{2} e^{\left (-\sqrt{d x + c} b - a\right )}}{b} - \frac{2 \,{\left ({\left (d x + c\right )} b^{2} e^{a} - 2 \, \sqrt{d x + c} b e^{a} + 2 \, e^{a}\right )} c e^{\left (\sqrt{d x + c} b\right )}}{b^{3}} - \frac{2 \,{\left ({\left (d x + c\right )} b^{2} + 2 \, \sqrt{d x + c} b + 2\right )} c e^{\left (-\sqrt{d x + c} b - a\right )}}{b^{3}} + \frac{{\left ({\left (d x + c\right )}^{2} b^{4} e^{a} - 4 \,{\left (d x + c\right )}^{\frac{3}{2}} b^{3} e^{a} + 12 \,{\left (d x + c\right )} b^{2} e^{a} - 24 \, \sqrt{d x + c} b e^{a} + 24 \, e^{a}\right )} e^{\left (\sqrt{d x + c} b\right )}}{b^{5}} + \frac{{\left ({\left (d x + c\right )}^{2} b^{4} + 4 \,{\left (d x + c\right )}^{\frac{3}{2}} b^{3} + 12 \,{\left (d x + c\right )} b^{2} + 24 \, \sqrt{d x + c} b + 24\right )} e^{\left (-\sqrt{d x + c} b - a\right )}}{b^{5}}\right )} b}{4 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.80244, size = 169, normalized size = 1.01 \begin{align*} \frac{2 \,{\left ({\left (b^{3} d x + 6 \, b\right )} \sqrt{d x + c} \sinh \left (\sqrt{d x + c} b + a\right ) -{\left (3 \, b^{2} d x + 2 \, b^{2} c + 6\right )} \cosh \left (\sqrt{d x + c} b + a\right )\right )}}{b^{4} d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.713937, size = 151, normalized size = 0.9 \begin{align*} \begin{cases} \frac{x^{2} \cosh{\left (a \right )}}{2} & \text{for}\: b = 0 \wedge \left (b = 0 \vee d = 0\right ) \\\frac{x^{2} \cosh{\left (a + b \sqrt{c} \right )}}{2} & \text{for}\: d = 0 \\\frac{2 x \sqrt{c + d x} \sinh{\left (a + b \sqrt{c + d x} \right )}}{b d} - \frac{4 c \cosh{\left (a + b \sqrt{c + d x} \right )}}{b^{2} d^{2}} - \frac{6 x \cosh{\left (a + b \sqrt{c + d x} \right )}}{b^{2} d} + \frac{12 \sqrt{c + d x} \sinh{\left (a + b \sqrt{c + d x} \right )}}{b^{3} d^{2}} - \frac{12 \cosh{\left (a + b \sqrt{c + d x} \right )}}{b^{4} d^{2}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.50521, size = 782, normalized size = 4.68 \begin{align*} -\frac{\frac{{\left ({\left (\sqrt{d x + c} b + a\right )} b^{2} c - a b^{2} c - b^{2} c \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) -{\left (\sqrt{d x + c} b + a\right )}^{3} + 3 \,{\left (\sqrt{d x + c} b + a\right )}^{2} a - 3 \,{\left (\sqrt{d x + c} b + a\right )} a^{2} + a^{3} + 3 \,{\left (\sqrt{d x + c} b + a\right )}^{2} \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) - 6 \,{\left (\sqrt{d x + c} b + a\right )} a \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) + 3 \, a^{2} \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) - 6 \, \sqrt{d x + c} b + 6 \, \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right )\right )} e^{\left ({\left (\sqrt{d x + c} b + a\right )} \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) - a \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) + a\right )}}{b^{3} d} - \frac{{\left ({\left (\sqrt{d x + c} b + a\right )} b^{2} c - a b^{2} c + b^{2} c \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) -{\left (\sqrt{d x + c} b + a\right )}^{3} + 3 \,{\left (\sqrt{d x + c} b + a\right )}^{2} a - 3 \,{\left (\sqrt{d x + c} b + a\right )} a^{2} + a^{3} - 3 \,{\left (\sqrt{d x + c} b + a\right )}^{2} \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) + 6 \,{\left (\sqrt{d x + c} b + a\right )} a \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) - 3 \, a^{2} \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) - 6 \, \sqrt{d x + c} b - 6 \, \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right )\right )} e^{\left (-{\left (\sqrt{d x + c} b + a\right )} \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) + a \mathrm{sgn}\left ({\left (\sqrt{d x + c} b + a\right )} b - a b\right ) - a\right )}}{b^{3} d}}{b d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]